import React, {memo, useEffect, useState} from 'react'

const App = memo(() => {

    const [count, setCount] = useState(200);

    useEffect(() => {
        console.log("useEffect")
        document.title = count
    })

    return (

        <div>
            <h2>
                {count}
            </h2>
            <button onClick={() => {
                setCount(count + 1)
            }}>+1
            </button>
        </div>

    )
})

export default App 